#if(action != 'added')
<input type="hidden" id="parentId" value="#(params[1] ??)"/>
#end
<div class="form-group">
  <label class="col-sm-2 control-label">#(jxrb.message("systemUserInfo.userCode"))</label>
  <div class="col-sm-5">
    <input type="hidden" name="systemUserInfo.user_id" value="#(systemuserinfo.user_id ??)" id="userId"/>
    #if(action == "added")
    <input type="text" name="systemUserInfo.user_code" value="#(systemuserinfo.user_code ??)" id="userCode" class="form-control"/>
    #else
    #(systemuserinfo.user_code ??)
    #end
    <input type="hidden" name="systemUserInfo.user_code" value="#(systemuserinfo.user_code ??)"/>
  </div>
</div>
<div class="hr-line-dashed"></div>
<div class="form-group">
  <label class="col-sm-2 control-label">
    #(jxrb.message("systemUserInfo.userName"))
  </label>
  <div class="col-sm-5">
    <div class="row">
      <div class="col-lg-5">
        <div class="input-group">
          #if(action == "added")
            <input type="text"  name="systemUserInfo.user_name" jtag='#(jxrb.message("systemUserInfo.userName"))' class="form-control" id="users_name" jac_url="#(jxwebpath.item)service/staff/list/"  jac_id="userId" jac_change="changeUser()" />
            <div class="input-group-btn">
              <button type="button" class="btn btn-white dropdown-toggle" data-toggle="dropdown">
                <span class="caret"></span>
              </button>
              <ul class="dropdown-menu dropdown-menu-right" role="menu">
              </ul>
            </div>
          #else
            #(systemuserinfo.user_name ??)
            <input type="hidden" name="systemUserInfo.user_name" value="#(systemuserinfo.user_name ??)"/>
          #end
        </div>
      </div>
    </div>
  </div>
</div>
<div class="hr-line-dashed"></div>
<div class="form-group">
  <label class="col-sm-2 control-label">#(jxrb.message("systemUserInfo.post"))</label>
  <div class="col-sm-5">
    #if(action == "added")
    #include("post.html")
      <div id="addPostInfo">
        <input type="button"  value='#(jxrb.message("systemUserInfo.add.post"))' id="addPI" onclick="addPostInfo();"/>
      </div>
    #else if(action == "edited")
    #include("post.html")
      <div  id ="addPostInfo" >
        <input type="button"  value='#(jxrb.message("systemUserInfo.add.post"))' id="addPI" onclick="addPostInfo();"/>
        #for(po : systemuserinfo.getPost())
        <div id ="divPostInfo_#(for.index)">
          <input type="text" name="postName" value="#(po.value ??)"  id="post_name" disabled="disabled"/>
          <input type="hidden" name="postId" value="#(po.type ??)" id="post_id" />
          <input type="button" value='#(jxrb.message("systemUserInfo.delete.post"))'  onclick="deletePostInfo('#(for.index)');" />
        </div>
        #end
      </div>
    #else
      <div  id ="addPostInfo" >
        #for(po : systemuserinfo.getPost())
        <div id ="divPostInfo_#(for.index)">
          #(po.value ??)&nbsp;
        </div>
        #end
      </div>
    #end
  </div>
</div>